from rest_framework.pagination import PageNumberPagination


class LargeResultsSetPagination(PageNumberPagination):
    """自定义分页（全局分页）"""
    # 指定每页最小数据条款
    page_sige = 2

    # 指定接受每页条款的字数
    page_size_query_param = 'page_sige'

    # 指定每页最大数据条款
    max_page_size = 20